package com.zsy.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.zsy.bean.Bis_Custom_User;
import com.zsy.mapper.Bis_Custom_UserMapper;

@Service
@Transactional
public class Bis_Custom_UserServiceImpl implements Bis_Custom_UserService {
	
	@Autowired
	private Bis_Custom_UserMapper bis_Custom_UserMapper;

	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public List<Bis_Custom_User> listAll(Map map) {
		return bis_Custom_UserMapper.listAll(map);
	}

	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public Bis_Custom_User getByUserId(String custom_user_id) {
		return bis_Custom_UserMapper.getByUserId(custom_user_id);
	}

	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public Bis_Custom_User getByMobile(String mobile) {
		return bis_Custom_UserMapper.getByMobile(mobile);
	}

}
